import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';

const { adminPath } = useGlobSetting();
export const drawPieChart = (params?: any) =>
  defHttp.get({ url: adminPath + '/orderStatus/count_delay', params });
export const renderChart = (params?: any) =>
  defHttp.get({ url: adminPath + '/orderStatus/count_delay_status', params });

//订单状态统计绘图数据
export const getChart = (params?: any) =>
  defHttp.get({ url: adminPath + '/orderStatus/get_corder_status', params });
//订单状态统计绘图数据
export const getDoubleChart = (params?: any) =>
  defHttp.get({ url: adminPath + '/order/getAllOrders', params });
